/*
	StargateWW for GarrysMod10
	Copyright (C) 2008 Prefanatic

	This program is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation, either version 3 of the License, or
	(at your option) any later version.

	This program is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/				
					
					
GM.Name 		= "StargateWW";
GM.Author 		= "Prefanatic";
GM.Email 		= "";
GM.Website 		= "";

WW = {}
WWClass = {};
ClassSystem = {};

WW.Version = "0.91"

// Setting up credit variables, :)
WW.Credits = {}

WW.Credits.Default = 500
WW.Credits.Current = 0
WW.Credits.Spent = false
WW.Credits.Initialized = false

// Changelog!
AChangelog = file.Read("stargateww_changelog.txt")

// Weapons!
WW.Weapons = {weapon_real_cs_m249 = "M249",
			weapon_zat = "ZAT",
			weapon_real_cs_tmp = "TMP",
			weapon_mp5 = "MP5",
			wraithsucker = "Wraith Hand Sucker",
			wraithstun = "Wraith Stunner"}

WW.Derma = {}

WW.Derma.StandX = 470
WW.Derma.StandY = 560

WW.Content = {}

WW.Content.HTTP = "http://prefanatic.stylee32.net/data/world wars/WW_Content_Pack.zip"
WW.Content.GM = "http://prefanatic.stylee32.net/data/world wars/stargateww.zip"

WW.Flavor = {}
WW.Flavor.Name = ""
WW.Flavor.JoinWelcome = ""
WW.Flavor.Scores = {}
WW.Flavor.Teams = {}

WW.Sounds = {}

WW.Sounds.Help = "vo/k_lab/kl_almostforgot.wav"
WW.Sounds.End = "vo/k_lab/kl_initializing.wav"
WW.Sounds.Press = "UI/buttonclick.wav"
WW.Sounds.Press2 ="UI/buttonrollover.wav"
WW.Sounds.End2 = "vo/k_lab/kl_initializing02.wav"

WW.Sounds.JoinInit = false
WW.Sounds.Join = {"music/HL2_song0.mp3",
					"music/HL2_song20_submix0.mp3",
					"music/HL2_song20_submix4.mp3",
					"music/HL2_song25_Teleporter.mp3",
					"music/HL2_song3.mp3",
					"music/HL2_song23_SuitSong3.mp3",
					"music/radio1.mp3",
					"music/Ravenholm_1.mp3"}
					
WW.Sounds.Notify = {"buttons/button3.wav",
					"buttons/button4.wav",
					"buttons/button5.wav",
					"buttons/button6.wav",
					"buttons/button9.wav",
					"buttons/combine_button1.wav",
					"buttons/combine_button2.wav",
					"buttons/combine_button3.wav",
					"buttons/combine_button5.wav"}
					
WW.Sounds.Ouch = {"vo/npc/male01/myarm01.wav",
					"vo/npc/male01/myarm02.wav",
					"vo/npc/male01/mygut02.wav",
					"vo/npc/male01/myleg01.wav",
					"vo/npc/male01/myleg02.wav",
					"vo/npc/male01/no02.wav",
					"vo/npc/male01/ow01.wav",
					"vo/npc/male01/ow02.wav",
					"vo/npc/male01/pain01.wav",
					"vo/npc/male01/pain02.wav",
					"vo/npc/male01/pain03.wav",
					"vo/npc/male01/pain04.wav",
					"vo/npc/male01/pain05.wav",
					"vo/npc/male01/pain06.wav",
					"vo/npc/Barney/ba_ohshit03.wav"}
					
WW.Sounds.FF = {"vo/npc/male01/watchout.wav",
				"vo/npc/male01/whatchwhat.wav",
				"vo/npc/male01/wetrustedyou01.wav",
				"vo/npc/male01/wetrustedyou02.wav"}
					
WW.Chat = {}
WW.Chat.Spelling = true
WW.Chat.Lines = {}
WW.Chat.Status = {}
WW.Chat.FilterWords = {
		i = "I",
		u = "you",
		cuz = "because",
		r = "are",
		im = "I'm",
		ur = "your",
		omg = "oh my god",
		omfg = "oh my freakin god",
		ass = "butt",
		wtf = "what the fuck",
		tbh = "to be honest",
		usa = "United States of America",
		wont = "won't",
		dont = "don't",
		cant = "can't",
		theyre = "they're",
		lol = "haha",
		rofl = "haha",
		lmao = "laughing my butt off",
		gay = "homosexual",
		hax = "hacks",
		teh = "the",
		lagg = "lag",
		bbl = "be back later",
		brb = "be right back",
		bsod = "blue screen of death",
		hai = "hey",
		haitut = "hey to you too",
		bbiab = "be back in a bit",
		afaicr = "as far as I can recall",
		asap = "as soon as possible",
		atm = "at the moment",
		leet = "leet",
		cya = "see ya",
		faq = "frequently asked questions",
		ffs = "for freaks sake",
		ftw = "for the win",
		flt = "for the lose",
		gtg = "got to go",
		g2g = "got to go",
		haxor = "hacker",
		motd = "message of the day",
		ty = "thank you",
		np = "no problem",
		wtg = "way to go",
		wth = "what the heck",
		zomg = "oh my gosh",
		nub = "noob",
		nvm = "never mind",
		gota = "got to",
		idk = "i don't know",
		thats = "that's",
		its = "it's",
		sgc = "Stargate Command",
		sg = "Stargate",
		wut = "what",
		atlantis = "Atlantis",
		wraith = "Wraith",
		lua = "Lua",
		
		
	}
	
WW.Chat.Commands = {}

function InsertChatStatus( Name, Length, Command, DisableSpell )
	table.insert( WW.Chat.Status, {Name = Name, Length = Length, Command = Command, SpellDisable = DisableSpell or false} )
end

function InsertServCommand( Command, Arg, Notify )
	table.insert( WW.Chat.Commands, {Command = Command, Arg = Arg, Length = string.len(Arg), Notify = Notify or false} )
end

// Class insert system.  Pretty much me beginging to learn about tables.  Changed everything!
function ClassSystem.Create( Class, ClassArg, Model, Info, Weapons, Leader, Gene, Team, TeamBase, TeamName, TeamCol )
	table.insert(WWClass, {Class = Class,
							ClassArg = ClassArg,
							Model = Model,
							Info = Info,
							Weapons = Weapons,
							Leader = Leader,
							Gene = Gene,
							Team = Team,
							TeamBase = TeamBase,
							TeamName = TeamName,
							ClassCol = TeamCol})
	team.SetUp(Team, Class, TeamCol)
end

/*
	This is the Player Classes lua file for Stargate: World Wars.  Developers or small lua creators can edit this file to change the classes in World Wars.
	The functions to do so are the following:
	
	ClassSystem.Create( ClassName, ClassArgument, Model, Info, Weapons, Leader, Gene, Team, TeamColor )
		ClassName is the displayed name of the class in the Derma and scoreboard.  E.G "Heavy Weapons"  "Wraith Guard"  "Jaffa"
		ClassArgument is the argument to call when calling the class.  E.G "person1"  "wraith1"  "goauld1"
		Model is the model the class will use, duuhhh
		Info is the text displayed on the Derma to describe the class.  Just a small discription is good.
		Weapons is the weapons given to the player at spawn.
		Leader is if the class is allowed to upgrade the non leaders in his class.  Also, he can give commands to players.
		Gene is the ancient gene, who is allowed to fly the Jumper.
		Team is the number set for the team.  E.G 1 2 3 4 --  HINT  Normally in WW, the teams are classified by team, then class profile.  Classes in the 10 range are Atlantis, and Classes in the 20 range are Wraith.
		TeamColor is the color of the team.  E.G Color(255, 20, 50, 255)
		
*/

// You may add your classes below here.
		  
team.SetUp(1, "unassigned", Color(20, 150, 20, 255)) -- To set up the unassigned spectating team.  
